package com.points.system.domain;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;
import java.time.LocalDateTime;

@Data
@TableName("points_operation_log")
public class PointsOperationLog {
    @TableId(type = IdType.AUTO)
    private Long id;
    
    private Long userId;
    
    private Integer operationType;
    
    private Long points;
    
    private Long beforePoints;
    
    private Long afterPoints;
    
    private String description;
    
    private LocalDateTime expireTime;
    
    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime createdTime;
    
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime updatedTime;
    
    @TableLogic
    private Integer deleted;
    
    public static final int OPERATION_RECHARGE = 1;
    public static final int OPERATION_CONSUME = 2;
    public static final int OPERATION_EXPIRE = 3;
} 